﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucListItems.ascx.cs" Inherits="Admin_UserControl_ucListItems" %>
<!--  start table-content  -->
<style type="text/css">
    .style1
    {
        width: 100%;
    }
</style>
<div id="table-content">
    <h1>
        Danh sách sản phẩm
    </h1>
    <br />
    <table class="style1">
        <tr>
            <td>
                <asp:HyperLink ID="hypeAddnew" runat="server" NavigateUrl="~/Admin/AddItem.aspx"
                    Text="Thêm mới sản phẩm" Font-Size="Medium"></asp:HyperLink>
            </td>
        </tr>
    </table>
    <br />
    <br />
    <div id="message-blue" style="display: none">
        <table border="0" width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <td class="blue-left">
                    Welcome back. <a href="">View my account.</a>
                </td>
                <td class="blue-right">
                    <a class="close-blue">
                        <img src="images/table/icon_close_blue.gif" alt="" /></a>
                </td>
            </tr>
        </table>
    </div>
    <asp:Button ID="btnDel" runat="server" Text="Xóa" OnClick="btnDel_Click" />
    <asp:GridView ID="grdItems" runat="server" AutoGenerateColumns="False" Width="100%"
        CellPadding="4" ForeColor="#333333" GridLines="None" AllowPaging="True" OnPageIndexChanging="grdItems_PageIndexChanging"
        PageSize="15" OnRowDataBound="grdItems_RowDataBound">
        <RowStyle BackColor="#E3EAEB" Height="30px" />
        <Columns>
            <asp:TemplateField HeaderText="#">
                <ItemTemplate>
                    <asp:CheckBox ID="ckDel" runat="server" />
                    <asp:HiddenField ID="hidItemID" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="ItemID" HeaderText="STT">
             <HeaderStyle HorizontalAlign="Center" />
             </asp:BoundField>
            <asp:HyperLinkField DataNavigateUrlFields="ItemID" DataNavigateUrlFormatString="~/Admin/AddItem.aspx?id={0}"
                DataTextField="ItemName" HeaderText="Tên sản phẩm">
                <HeaderStyle HorizontalAlign="Left" />
            </asp:HyperLinkField>
            <asp:BoundField DataField="ItemNumber" HeaderText="Mã sản phẩm">
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="CateName" HeaderText="Danh mục sản phẩm">
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <asp:BoundField DataField="BaseSellingPrice" HeaderText="Giá">
                <HeaderStyle HorizontalAlign="Left" />
            </asp:BoundField>
            <%--<asp:TemplateField HeaderText="Delete">
                <ItemTemplate>
                    <asp:ImageButton ID="btnDelImg" runat="server" CausesValidation="false" CommandName="delete"
                        CommandArgument='<%# Eval("ItemID") %>' ImageUrl="~/Admin/images/table/del.gif"
                        OnClick="btnDelImg_Click" />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>--%>
        </Columns>
        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <PagerStyle CssClass="clsPage" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#2e74b2" Font-Bold="True" ForeColor="White" Height="35px" />
        <EditRowStyle BackColor="#7C6F57" />
        <AlternatingRowStyle BackColor="White" />
    </asp:GridView>
</div>
<!--  end content-table  -->
<!--  start actions-box ............................................... -->
